home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5212 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  901 b 

  1. Path: news.cyberstore.ca!news
  2. From: ken.wilson@cyberstore.ca (Ken Wilson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: class object member & Inherit?
  5. Date: Sat, 03 Feb 1996 01:25:01 GMT
  6. Organization: The Flowered Alcatraz
  7. Message-ID: <4eucs6$iiv@sulla.cyberstore.ca>
  8. References: <4etn91$gud@netnews.hinet.net>
  9. NNTP-Posting-Host: yyj-ppp-19.cyberstore.ca
  10. X-Newsreader: Forte Free Agent v0.46
  11.  
  12. donny@ms1.hinet.net (Donny Lee) wrote:
  13.  
  14. > Here comes another question, Class object member and Inherit.
  15. >    class Word {
  16. >          :
  17. >        String str;        // another class
  18. >    };
  19.  
  20. In this snippet your class contains a String class object as a member.
  21.  
  22. >  ------------------
  23. >    class Word : private String {
  24. >        :
  25. >        :
  26. >    }
  27.  
  28. In this snippet your class is derived from the String class
  29.  
  30.  
  31. Ken Wilson
  32. ken.wilson@cyberstore.ca
  33.  
  34. "C program.  C program run.  Run, program, run.  Pleeaasse!"
  35.  
  36.